package org.dromara.iot.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.iot.domain.IotElevator;
import org.dromara.iot.domain.vo.IotElevatorVo;
import org.dromara.system.domain.SysOss;
import org.dromara.system.domain.vo.SysOssVo;

import java.util.Collection;
import java.util.List;

/**
 * 电梯管理Mapper接口
 *
 * @author LSL
 * @date 2024-06-16
 */
public interface IotElevatorMapper extends BaseMapperPlus<IotElevator, IotElevatorVo> {

    Page<SysOssVo> selectAllocatedList(@Param("page") Page<SysOss> build, @Param(Constants.WRAPPER) Wrapper<IotElevator> wrapper);

    Page<SysOssVo> selectUnallocatedList(@Param("page") Page<SysOss> build, @Param(Constants.WRAPPER) Wrapper<SysOss> wrapper);

    Page<IotElevatorVo> selectOwnVoPage(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) Wrapper<IotElevator> lqw);

    IotElevatorVo selectOwnVoById(Long elevatorId);

    List<IotElevatorVo> selectOwnVoByIds(Collection<Long> ids);
}
